package com.donleo.student.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.donleo.common.api.CommonResult;
import com.donleo.common.model.Team;
import com.donleo.student.vo.TeamVo;

import java.util.List;

/**
 * <p>
 * 小组表 服务类
 * </p>
 *
 * @author liangd
 * @since 2020-12-21
 */
public interface TeamService extends IService<Team> {

    CommonResult add(Team team);

    CommonResult delete(Integer id);

    CommonResult updateTeam(Team team);

    Team findById(Integer id);

    List<Team> findAll(TeamVo teamVo);

    long getCount(TeamVo teamVo);

    /**
     * 分配组长
     */
    CommonResult distributeLeader(Team team);

    /**
     * 分配组员
     * @param strings 用户编号集合
     * @return CommonResult
     */
    CommonResult distributeMembers(String teamCode, List<String> strings);
}
